package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.RpInComeBarcode;
import com.yegs.jltqc.VO.RpProduceBarcode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RpInComeBarcodeRepository extends JpaRepository<RpInComeBarcode,Long> {

    RpInComeBarcode findFirstByCbarcodeOrderByIdDesc(String cbarcode);

    List<RpInComeBarcode> findAllByCbarcodeLikeAndRefIdIsNotNull(String cbarcode);


}
